//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<CConstantVertex10.h>
///	@path	~/src/graphics/dx10/
///	@date	2009/01/10
///	@desc	.

#pragma once

#include "xeres.h"

#include "graphics/IVertexBuffer.h"
#include "graphics/dx10/CDevice10.h"
#include "graphics/dx10/CBaseVertex10.h"

namespace xeres {

	/*! 
		\class	CConstantVertex10
		\brief
	*/
	class CConstantVertex10 : public CBaseVertex10
	{
	public:

		/// \ctor
		CConstantVertex10( ID3D10Buffer * buffer , size_t count , size_t stride );

		/// \dtor
		virtual ~CConstantVertex10( void );

		DECL_IOBJECT_CLASS( CConstantVertex10 , CBaseVertex10 );

	public:

		/// \name Vertex Buffer Interface
		//@{

		/// \impl
		virtual bool Map( bool discard , ResourceMap& data );

		/// \impl
		virtual bool ReadBack( ResourceMap& data , bool readonly );

		/// \impl
		virtual bool Unmap( void );

		//@}
	};
	
} // namespace xeres
